// TOWN SPECIAL ENCOUNTERS
//    Town 47: Erika's Tower

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 200;
short last_abil;
short counter = 0;
short set_ter = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,);
//	add_range_to_group(,,groupn);

	set_personality_name(940,"Erika");

	set_crime_tolerance(max_crime);

	sf(47,3,0);
	sf(47,15,0);
	
	make_field(56,42,6);
	make_field(56,46,6);
	make_field(50,50,6);

	set_aggression(30010,40);
	
	set_name(4747,"Splitting Wyrm");
	
	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"You are the explorer.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"Much depends on you.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"The surface musn't be destroyed.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"Someone is destroying our land.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"The Empire is vile.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"I can aid you.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(4723,"Be careful when exploring.");

	clear_fields(13,40);
	clear_fields(14,40);
	
	if ((gf(47,24) > 0) && (gf(47,27) == 0)) {
		sf(47,27,1);
		activate_hidden_group(9);
		}
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

beginstate 14;
break;

//	print_str("");
//	set_terrain_string_range("",1);
//	set_terrain_string_range("The sign says - .",1);

 